#!-*-cofing:utf-8-*-

from ctypes import *


class OpenArgsT(Structure):
    _fields_ = [('struct_size', c_uint), ('module_name', c_char * 12), ('log_level', c_uint),
                ('back_track', c_uint), ('log_to_file', c_uint), ('log_file', c_wchar * 260), ('open_flags', c_uint),
                ('max_log_file_size', c_uint)]


class ChannelAttriBute(Structure):
    _fields_ = [('channel_type', c_int), ('port_num', c_ulong), ('port_baudrate', c_ulong)]

class ChannelServerAttriBute(Structure):
    _fields_ = [('channel_type', c_int), ('server_port', c_ulong), ('server_ip', c_ulong), ('server_flag', c_ulong)]
